package com.flyme.module.base.client.event;

import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * 用户注册事件
 */
@Getter
public class UserRegEvent extends ApplicationEvent {

    private static final long serialVersionUID = 1L;
    private String userName;
    private  String mobile;
    private String userType;
    private String roleCode;
    private Long companyId;
    private String password;
    private String compName;

    /**
     * 重写构造函数
     */
    public UserRegEvent(Object source, String userName, String mobile,String userType, String roleCode, Long companyId) {
        super(source);
        this.userName = userName;
        this.mobile = mobile;
        this.userType = userType;
        this.roleCode = roleCode;
        this.companyId = companyId;
    }

    /**
     * 重写构造函数2
     */
    public UserRegEvent(Object source, String userName, String mobile,String userType, String roleCode, Long companyId, String password,String compName) {
        super(source);
        this.userName = userName;
        this.mobile = mobile;
        this.userType = userType;
        this.roleCode = roleCode;
        this.companyId = companyId;
        this.password = password;
        this.compName=compName;
    }

}
